package com.taiji.workOrder.mapper;

import java.util.List;
import com.taiji.workOrder.domain.WorkOrder;

/**
 * 工单明细Mapper接口
 * 
 * @author taiji
 * @date 2023-02-27
 */
public interface WorkOrderMapper 
{
    /**
     * 查询工单明细
     * 
     * @param id 工单明细主键
     * @return 工单明细
     */
    public WorkOrder selectWorkOrderById(String id);

    /**
     * 查询工单明细列表
     * 
     * @param workOrder 工单明细
     * @return 工单明细集合
     */
    public List<WorkOrder> selectWorkOrderList(WorkOrder workOrder);

    /**
     * 新增工单明细
     * 
     * @param workOrder 工单明细
     * @return 结果
     */
    public int insertWorkOrder(WorkOrder workOrder);

    /**
     * 修改工单明细
     * 
     * @param workOrder 工单明细
     * @return 结果
     */
    public int updateWorkOrder(WorkOrder workOrder);

    /**
     * 删除工单明细
     * 
     * @param id 工单明细主键
     * @return 结果
     */
    public int deleteWorkOrderById(String id);

    /**
     * 批量删除工单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWorkOrderByIds(String[] ids);


    public WorkOrder selectWorkOrderByWorkNumber(String workNumber);
}
